//
//  LoginStatuesModel.h
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/10/13.
//  Copyright © 2017年 bob. All rights reserved.
//

#import <Foundation/Foundation.h>

@class LoginData,LoginMenus;
@interface LoginStatuesModel : NSObject

@property (nonatomic, copy) NSString *msg;

@property (nonatomic, strong) LoginData *data;

@property (nonatomic, assign) NSInteger code;

//保存登陆数据
+(void)SaveUserInforWithModel:(LoginStatuesModel*)model;
//获取useid
+(NSString*)getUserToken;
//获取用户名
+(NSString*)getLoginName;
//获取用户昵称
+(NSString*)getStaffName;
//获取头像
+(NSString*)getuserPhoto;
//获取用户类型
+(NSInteger)getUserType;
//用户ID
+(NSInteger)getStaffId;
//获取商户审核状态
+(NSInteger)shopStatus;
//获取商户shopid
+(NSInteger)shopId;

//获取商户名字
+(NSString*)shopName;

//获取商户类型
+(NSInteger)shoptype;

//清除登陆数据
+(void)CleanUserInfor;
//获取缓存数据
+(NSDictionary*)GetCach;

@end
@interface LoginData : NSObject

@property (nonatomic, copy) NSString *shopSn;

@property (nonatomic, strong) NSArray<LoginMenus *> *menus;

@property (nonatomic, copy) NSString *loginName;

@property (nonatomic, copy) NSString *bid;

@property (nonatomic, copy) NSString *ROW_NUMBER;

@property (nonatomic, copy) NSString *shopImg;

@property (nonatomic, copy) NSString *staffPhoto;

@property (nonatomic, assign) NSInteger type;

@property (nonatomic, assign) NSInteger staffRoleId;

@property (nonatomic, copy) NSString *shopAddress;

@property (nonatomic, assign) NSInteger shopStatus;

@property (nonatomic, copy) NSString *staffNo;

@property (nonatomic, copy) NSString *token;

@property (nonatomic, assign) NSInteger shopId;

@property (nonatomic, assign) NSInteger staffId;

@property (nonatomic, copy) NSString *staffName;

@property (nonatomic, copy) NSString *shopName;

@property (nonatomic, assign) NSInteger marketId;

@property (nonatomic, assign) NSInteger parentId;

@property(nonatomic,assign)NSInteger loginType;

@end

@interface LoginMenus : NSObject

@property (nonatomic, assign) NSInteger ID;

@property (nonatomic, copy) NSString *icon;

@property (nonatomic, copy) NSString *name;

@property (nonatomic, assign) NSInteger sort;

@end


